package com.budwk.app.sqfw.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @title: Sqfw_completeflow
 * @Author Tan
 * @Date: 2023/6/1 17:20
 * @Version 1.0
 */

@Data
@Accessors(chain = true)
@Table("shequ.sqfw_problem_feed")
@Comment("问题反馈数据")
@ApiModel(description = "完结流程")
public class SqfwProblemFeed implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @Comment("编号")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(els = {@EL("snowflake()")}, nullEffective = true)
    private String id;

    @Column("feed_type")
    @Comment("反馈类型（建议 问题 其他）")
    @ApiModelProperty(description = "反馈类型（建议 问题 其他）")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String feedType;

    @Column("content")
    @Comment("意见反馈")
    @ApiModelProperty(description = "意见反馈")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String content;

    @Column("feed_photos")
    @Comment("问题照片")
    @ApiModelProperty(description = "问题照片")
    @ColDefine(type = ColType.VARCHAR, width = 600)
    private String feedPhotos;

    @Column("operater")
    @Comment("姓名")
    @ApiModelProperty(description = "姓名")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String operater;

    @Column("operater_mobile")
    @Comment("联系方式")
    @ApiModelProperty(description = "联系方式")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String operaterMobile;

    @Column("receive_email")
    @Comment("接收人邮箱")
    @ApiModelProperty(description = "接收人邮箱")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String receiveEmail;

    @Column("receive_mobile")
    @Comment("接收人电话")
    @ApiModelProperty(description = "接收人电话")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String receiveMobile;

    @Column("readed")
    @Comment("是否已读")
    @ApiModelProperty(description = "是否已读")
    @ColDefine(type = ColType.BOOLEAN, width = 120)
    private boolean readed;

    @Column("create_date")
    @Comment("创建时间")
    @ApiModelProperty(description = "创建时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 120)
    private LocalDateTime createDate;

    @Column("create_id")
    @Comment("创建人")
    @ApiModelProperty(description = "创建人")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String createId;

    @Column("update_date")
    @Comment("更新时间")
    @ApiModelProperty(description = "更新时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 120)
    private LocalDateTime updateDate;

    @Column("update_id")
    @Comment("更新人")
    @ApiModelProperty(description = "更新人")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String updateId;

    @Column("deleted")
    @Comment("是否删除")
    @ApiModelProperty(description = "是否删除")
    @ColDefine(type = ColType.BOOLEAN, width = 120)
    private boolean deleted;

}
